package com.mayjean.db.tenant;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "nezha.tenant")
@Getter
@Setter
public class NezhaTenantProperties {
	/**
	 * tenant field
	 */
	private String field = "tenant_id";

	/**
	 * tenant tables, if not null, first, otherwise
	 *
	 * @see this#exclusionTables
	 */
	private List<String> tables;

	/**
	 * exclude tenant tables, second
	 */
	private List<String> exclusionTables;
}
